﻿<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>页面源代码的加密</title>
  <script type="text/javascript" language="JavaScript">
    let Words;
    function SetWords(word)   //加密当前文本
    {
      Words = escape(word.value);//加密的主要方法
    }
    function SetNewWords(form)  //加密当前窗体
    {
      var NewWords;
      NewWords = Words
      form.NewWords.value = NewWords;
    }
  </script>
  
</head>
<body>
<form METHOD="POST">
  <div align="center">
    <div align="center">
      <font color="#0066FF">加密页面源代码脚本</font></div>
    <p>将你的页面源代码粘贴在下面的框内,要包括所有的标签例如html , head, body等。</p>
  </div>
  <P align="center"> 
    <textarea NAME="Word"  VALUE="" ROWS=7 COLS=50 ONCHANGE="SetWords(this)">
</textarea>
  <P align="center">
    <input TYPE=BUTTON ONCLICK="SetNewWords(this.form)"
           VALUE="开始转换">

  <P align="center"> 
    <textarea NAME="NewWords"  VALUE="" ROWS=7 COLS=50>
</textarea>
</form>
</body>
</html>